<template>
	<view class="content bgc-f0">
		<view class="p26 bgc-fff search_sticky">
			<u-search 
				placeholder="请输入客户姓名,手机号等关键字" 
				v-model="value" 
				shape="round" 
				@blur="getStreamData" 
				@search="getStreamData" 
				@custom="getStreamData">
			</u-search>
		</view>
		
		<template v-if="list.length > 0">
			<template v-for="(it,index) in 3">
				<view class="_li">
					<view class="bd1 mr20" style="width: 110rpx;height: 110rpx;">
						
					</view>
					<view class="flex-1 fs26 z-flex z-flex-around" style="flex-direction: column;height: 110rpx;">
						<view class="z-flex z-flex-align-c z-flex-between">
							<text class="fs30">姓名(15182916740)</text>
						</view>
						<view class="z-flex z-flex-align-c">
							<text class="mr40">静态奖励：+468.31</text>
							<text>动态奖励：0</text>
						</view>
					</view>
					<view class="_total"><text class="fs30 c-fff">87.08</text></view>
				</view>
			</template>
		</template>
		
		<vempty v-show="false" title="暂无数据"></vempty>
	</view>
</template>

<script>
	export default{
		data(){
			return {
				value: '',
				dataLe: false,
				list: [],
			}
		},
		onShow() {
			this.getStreamData()
		},
		methods:{
			getStreamData(){
				this.dataLe = false
				this.list = []
				uni.showLoading({
					title: '数据加载中...',
					icon: 'none'
				})
				
				setTimeout(()=>{
					this.dataLe = true
					this.list = [{name: '张三'},{name: '李四'},{name: '李奎'}]
					uni.hideLoading()
				},1000)
			},
			handBlurEvent(e){
				this.getStreamData()
			},
		}
	}
</script>

<style scoped lang="scss">
	.content{
		width: 100vw;
		height: 100vh;
		overflow-y: auto;
		._li{
			display: flex;
			align-items: center;
			padding: 26rpx;
			border-bottom: 1rpx solid #F8F8F8;
			background-color: #FFFFFF;
			._total{
				width: 120rpx;
				height: 50rpx;
				line-height: 50rpx;
				text-align: center;
				background-color: $uni-color-theme;
				border-radius: 40rpx;
			}
		}
	}
</style>
